import {lazy} from "react"
let routerlist = [
    {
        path:"/login",
        component:lazy(()=>import("../pages/login"))
    },
    {
        path:"/home",
        component:lazy(()=>import("../pages/home")),
        children:[
            {
                path:"/home/dh1",
                component:lazy(()=>import("../pages/dh1"))
            },
            {
                path:"/home/dh2",
                component:lazy(()=>import("../pages/dh2"))
            },
            {
                path:"/home/dh3",
                component:lazy(()=>import("../pages/dh3"))
            },
            {
                from:"/home",
                to:"/home/dh1"
            }

        ]

    },
    {
        from :"/",
        to:"/login"
    }

]
export default routerlist